Documentation

This was the first real problem-solving challenge. The program simulates a tiny library:
Features:
  1. Add books to the collection
  2. Remove books from the collection          
  3. Print the list of available books                    

Concepts Learned:
  1. How to work with classes and objects in Java
  2. Using ArrayLists for dynamic storage
  3. Writing methods (addBook, removeBook, listBooks) and calling them

Key Takeaway:
Data structures (like ArrayList) make life way easier compared to plain arrays.
        

Deliverable 3: Variables & Fields

💻 Backend (Java Code)

import java.util.Scanner;

public class Variables_and_Fields {
    // Fields (belong to the class, not just inside main)
    private static final String VALID_USERNAME = "admin";
    private static final String VALID_PASSWORD = "1234";
    
    

    public static void main (String[] args) {

        Scanner scanner = new Scanner(System.in);

        // Variables (local to main)
        System.out.print("Enter username: ");
        String username = scanner.nextLine();

        System.out.print("Enter password: ");
        String password = scanner.nextLine();

        // If/ else logic
        if (username.equals(VALID_USERNAME) && password.equals(VALID_PASSWORD)) {
            System.out.println("Login successful!");
        } else {
            System.out.println("Invalid credentials. Try again.");
        }

        scanner.close();
    }

}




🌐 Live Frontend Demo